import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'
import MoreView from "@/views/MoreView.vue";
import OrderView from "@/views/OrderView.vue";
import UserView from "@/views/UserView.vue";
import ShopView from "@/views/ShopView.vue";
import LoginView from "@/views/LoginView.vue";
import FindView from "@/views/FindView.vue";
import WelcomeView from "@/views/WelcomeView.vue";
import RegisterView from "@/views/RegisterView.vue";

const routes = [
  {
    path: '/',
    name: 'welcome',
    component: WelcomeView
  },
  {
    path:"/home",
    name:"home",
    component:HomeView
  },
  {
    path: '/more',
    name: 'more',
    component: MoreView
  },
  {
    path:"/order",
    name:"order",
    component:OrderView
  },
  {
    path:"/user",
    name:"user",
    component:UserView
  },
  {
    path:"/shop",
    name:"shop",
    component:ShopView
  },
  {
    path:"/login",
    name:"login",
    component:LoginView
  },
  {
    path:"/register",
    name:"register",
    component:RegisterView
  },
  {
    path:"/find",
    name:"Find",
    component:FindView
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
